import request from '@/utils/request'

// 获取门禁配置
export function getDoorConfig() {
  return request({
    url: '/admin-api/door-config/get',
    method: 'get'
  })
}

// 更新人脸价格配置
export function updateFacePrice(data) {
  return request({
    url: '/admin-api/door-config/update',
    method: 'post',
    data: {
      facePrice: data.facePrice,
      giftMonthOfByOneYear: data.giftMonthOfByOneYear
    }
  })
}
